//
//  FileDownLoadNetWork.h
//  work1
//
//  Created by zhoudong on 2018/5/17.
//  Copyright © 2018年 session. All rights reserved.
//下载文件




#import <Foundation/Foundation.h>

@protocol FileDownLoadDelegate

-(void)backDownprogress:(float)progress;

-(void)downSucceed:(NSURL*)url;

-(void)downError:(NSError*)error;

@end


@interface FileDownLoadNetWork : NSObject<NSURLSessionDelegate>
@property(nonatomic,strong)NSURLSession* session;
@property(nonatomic,strong)NSURLSessionDownloadTask* downloadTask;
@property(nonatomic,strong)NSData* resumeData;
@property(nonatomic,assign)id<FileDownLoadDelegate>myDeleate;
-(void)downFile:(NSString*)fileUrl isBreakpoint:(BOOL)breakpoint;


//暂停 继续 取消 文件下载
-(void)suspendDown;
-(void)cancelDown;


@end


